package com.itheima.功能流.properties;

import java.util.Properties;
import java.util.Set;

public class PropertiesDemo2 {
    public static void main(String[] args) {

        Properties prop = new Properties();
        // setProperty(Stirng key,String value)  ----> get
        prop.setProperty("name","张三");
        prop.setProperty("id","heima001");
        prop.setProperty("age","18");
        prop.setProperty("birthday","1999-09-09");

        //Set<String> stringPropertyNames()     --- leySet
        Set<String> keys = prop.stringPropertyNames();
        for (String key : keys) {
            String value = prop.getProperty(key);
            System.out.println(key + "=" + value);
        }
    }
}
